package models_main

import (
	"fmt"
	"gorm.io/gorm"
	"longmen/server/pkg/db/mysql/models"
)

type UserFeedback struct {
	gorm.Model
	Uid     int64  `json:"uid"  sql:"int"`             //int(64) NOT NULL,
	Title   string `json:"title" sql:"varchar(30)"`    //varchar(30) DEFAULT NULL COMMENT '标题',
	Content string `json:"content" sql:"varchar(255)"` //varchar(300) DEFAULT NULL COMMENT '内容',
}

func (UserFeedback) TableName() string {
	return fmt.Sprintf("%suser_feedback", models.Prefix)
}
